#!/bin/bash 
# creating a temp file in /tmp

tempfile=$(mktemp -t AAA.XXX)

echo "This is a test file " >> $tempfile
echo "second line" >> $tempfile

echo "The temp file is loacted at $tempfile"
cat $tempfile
rm -f $tempfile
